/**
 * <p>Copyright (c) 2017 深圳市鹏途交通科技有限公司 </p>
 * <p>				   All right reserved. 		     </p>
 * 
 * <p>项目名称 ： 	深圳市国省检日常化监管系统         </p>
 * <p>创建者   :	hey 
 * 
 * <p>描   述  :   ReportChannelsDao.java for com.pengtu.gsj.dao.lzgl    </p>
 * 
 * <p>最后修改 : $: Sep 12, 2017-11:17:57 AM v 1.0.0	 hey   $ </p>
 * 
*/

package com.pengtu.gsj.dao.lzgl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.pengtu.gsj.dao.hibernate.HibernateDao;
import com.pengtu.gsj.entity.lzgl.ReportChannels;

/**
 * 
 * ReportChannelsDao
 * 
 * Sep 12, 2017 11:17:57 AM
 * 
 * @version 1.0.0
 * 
 */
@Repository
public class ReportChannelsDao extends HibernateDao<ReportChannels, String>{
	
	public List<ReportChannels>getAllReportChannels(){
		String hql = "select new com.pengtu.gsj.entity.lzgl.ReportChannels(t.id, t.complaintThings) from ReportChannels t where t.delFlag='0' group by t.id,t.complaintThings order by t.id desc";
		return this.find(hql);
	}
	
}
